package com.mingtu.jgspatrol.adapter;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.mingtu.jgspatrol.R;
import com.mingtu.jgspatrol.bean.ReserveDetailsBean;

public class ParkPeopleInfoAdapter extends BaseQuickAdapter<ReserveDetailsBean.DataBean.PersonListBean, BaseViewHolder> {

    public ParkPeopleInfoAdapter() {
        super(R.layout.item_people_info);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, ReserveDetailsBean.DataBean.PersonListBean dataBean) {
        String name = dataBean.getPersonName();
        String phone = dataBean.getPersonPhone();
        helper.setText(R.id.tv_name, name);
        helper.setText(R.id.tv_phone, phone);
        helper.addOnClickListener(R.id.tv_phone);
    }
}
